// C# Example
// Select objects based on their tags
using UnityEngine;
using UnityEditor;
public class SelectAllOfTag : ScriptableWizard {
    public string tagName = "ExampleTag";
    [MenuItem ("Example/Select All of Tag...")]
    public static void SelectAllOfTagWizard() {
        ScriptableWizard.DisplayWizard(
            "Select All of Tag...",
            typeof(SelectAllOfTag),
            "Make Selection");
    }
    void OnWizardCreate() {
        GameObject[] gos = GameObject.FindGameObjectsWithTag(tagName);
        Selection.objects = gos;
    }
}